/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

import org.opensource.jdom.taggen.html.CommonAttributes;

/**
 * Table row. tr elements must appear within a table element.
 *
 * <h2>Example</h2> <pre><code class="html">
 *&lt;table&gt;</code>
 *	<strong>&lt;tr&gt;</strong></code>
 *		&lt;th&gt;Question&lt;/th&gt;</code>
 *		&lt;th&gt;Answer&lt;/th&gt;</code>
 *		&lt;th&gt;Correct?&lt;/th&gt;</code>
 *	<strong>&lt;/tr&gt;</strong></code>
 *	<strong>&lt;tr&gt;</strong></code>
 *		&lt;td&gt;What is the capital of Burundi?&lt;/td&gt;</code>
 *		&lt;td&gt;Bujumburra&lt;/td&gt;</code>
 *		&lt;td&gt;Yes&lt;/td&gt;</code>
 *	<strong>&lt;/tr&gt;</strong></code>
 *	<strong>&lt;tr&gt;</strong></code>
 *		&lt;td&gt;What is the capital of France?&lt;/td&gt;</code>
 *		&lt;td&gt;F&lt;/td&gt;</code>
 *		&lt;td&gt;Erm... sort of&lt;/td&gt;</code>
 *	<strong>&lt;/tr&gt;</strong></code>
 *&lt;/table&gt;</code>
 *</code></pre>
 *
 * @see Td
 * @see Th
 * @see Table
 * @author sergio.valdez
 */
public class Tr extends CommonAttributes{

    /**
     * can be used to horizontally align the content of the cell. The value can
     * be left, center, right, justify or char.
     */
    private String align ;
    /**
     * can be used to vertically align the content of the cell. The value can be
     * top, middle, bottom or baseline.
     */
    private String valign ;
    /**
     *  can be used to specify a character with which cells will align, such as
     * a decimal point. It is not supported by any major browser.
     */
    private String cssChar ;
    /**
     * can be used to specify the number of pixels the alignment should be
     * offset from the char character. It is not supported by any major browser.
     */
    private String charoff ;

    /**
     * can be used to horizontally align the content of the cell. The value can
     * be left, center, right, justify or char.
     * @return the align
     */
    public String getAlign() {
        return align;
    }

    /**
     * can be used to horizontally align the content of the cell. The value can
     * be left, center, right, justify or char.
     * @param align the align to set
     */
    public void setAlign(String align) {
        this.align = align;
    }

    /**
     * can be used to vertically align the content of the cell. The value can be
     * top, middle, bottom or baseline.
     * @return the valign
     */
    public String getValign() {
        return valign;
    }

    /**
     * can be used to vertically align the content of the cell. The value can be
     * top, middle, bottom or baseline.
     * @param valign the valign to set
     */
    public void setValign(String valign) {
        this.valign = valign;
    }

    /**
     * can be used to specify a character with which cells will align, such as
     * a decimal point. It is not supported by any major browser.
     * @return the cssChar
     */
    public String getCssChar() {
        return cssChar;
    }

    /**
     * can be used to specify a character with which cells will align, such as
     * a decimal point. It is not supported by any major browser.
     * @param cssChar the cssChar to set
     */
    public void setCssChar(String cssChar) {
        this.cssChar = cssChar;
    }

    /**
     * can be used to specify the number of pixels the alignment should be
     * offset from the char character. It is not supported by any major browser.
     * @return the charoff
     */
    public String getCharoff() {
        return charoff;
    }

    /**
     * can be used to specify the number of pixels the alignment should be
     * offset from the char character. It is not supported by any major browser.
     * @param charoff the charoff to set
     */
    public void setCharoff(String charoff) {
        this.charoff = charoff;
    }
}
